import request from '@/utils/api/request';
import { MyRequestOptions,HttpResponse } from './type';



export const lastThreeMsg = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/appMessage/lastThreeMsg`;
  return request.get(option);
};



export const pageMsg = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/appMessage/pageMsg`;
  return request.get(option);
};


export const groupMsg = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/appMessage/groupMsg`;
  return request.get(option);
};


export const readMsgById = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/appMessage/readMsgById`;
  return request.get(option);
};

export const readAllMsg = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/appMessage/readAllMsg`;
  return request.get(option);
};